<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增成语词典')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-chengyu-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">成语：</label>
                <div class="col-sm-8">
                    <input name="ci" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">标签：</label>
                <div class="col-sm-8">
                    <input name="tag" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">拼音：</label>
                <div class="col-sm-8">
                    <input name="pinyin" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">用法：</label>
                <div class="col-sm-8">
                    <input name="yongfa" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">色彩：</label>
                <div class="col-sm-8">
                    <input name="secai" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">解释：</label>
                <div class="col-sm-8">
                    <textarea name="jieshi" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">出处：</label>
                <div class="col-sm-8">
                    <input name="chuchu" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">常用程度：</label>
                <div class="col-sm-8">
                    <input name="changyong" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">结构：</label>
                <div class="col-sm-8">
                    <input name="jiegou" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">年代：</label>
                <div class="col-sm-8">
                    <input name="niandai" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">例子：</label>
                <div class="col-sm-8">
                    <input name="lizi" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">英语翻译：</label>
                <div class="col-sm-8">
                    <textarea name="english" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">日语翻译：</label>
                <div class="col-sm-8">
                    <textarea name="japan" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">同义词：</label>
                <div class="col-sm-8">
                    <textarea name="tongyici" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">注音：</label>
                <div class="col-sm-8">
                    <input name="zhuyin" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">反义词：</label>
                <div class="col-sm-8">
                    <textarea name="fanyici" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">拼音(无声调)：</label>
                <div class="col-sm-8">
                    <input name="py" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "dict/chengyu"
        $("#form-chengyu-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-chengyu-add').serialize());
            }
        }
    </script>
</body>
</html>